Skip to content

sync/git(fix[update_repo]): Use quiet=True for stash.save#506

Open
tony wants to merge 1 commit intomasterfrom
fix/stash-save-quiet
Open

sync/git(fix[update_repo]): Use quiet=True for stash.save#506
tony wants to merge 1 commit intomasterfrom
fix/stash-save-quiet

Conversation

@tony
Copy link
Copy Markdown
Member

@tony tony commented Dec 30, 2025

Summary

  • Fixed GitSync.update_repo() to use stash.save(quiet=True) instead of incorrectly passing "--quiet" as the message parameter

Problem

The code was calling self.cmd.stash.save(message="--quiet") which passed the string "--quiet" as the stash message instead of using the dedicated quiet parameter to suppress output.

This resulted in stashes being created with the literal message "--quiet" rather than the operation being quiet.

Fix

Changed to self.cmd.stash.save(quiet=True) and removed the unused variable and outdated comment.

@tony tony force-pushed the fix/stash-save-quiet branch from 98da623 to b6a64ae Compare December 30, 2025 15:50
@codecov
Copy link
Copy Markdown

codecov Bot commented Dec 30, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 58.23%. Comparing base (54121b2) to head (cc56fc2).

Additional details and impacted files
@@            Coverage Diff             @@
##           master     #506      +/-   ##
==========================================
- Coverage   58.23%   58.23%   -0.01%     
==========================================
  Files          40       40              
  Lines        6489     6488       -1     
  Branches     1098     1098              
==========================================
- Hits         3779     3778       -1     
  Misses       2177     2177              
  Partials      533      533              

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

why: The code incorrectly passed "--quiet" as the message parameter,
creating stashes with literal "--quiet" message instead of suppressing output.
what:
- Change stash.save(message="--quiet") to stash.save(quiet=True)
- Remove unused git_stash_save_options variable
- Remove outdated Git < 1.7.6 comment
@tony tony force-pushed the fix/stash-save-quiet branch from b6a64ae to cc56fc2 Compare April 26, 2026 10:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant